package com.aust.dynamicProxy.test4;

public class CalculatorImpl implements Calculator {
    @Override
    public int add(int a, int b) throws InterruptedException {
        Thread.sleep(1000);
        return a + b;
    }

    @Override
    public int sub(int a, int b) throws InterruptedException {
        Thread.sleep(1000);
        return a - b;
    }

    @Override
    public int mul(int a, int b) throws InterruptedException {
        Thread.sleep(1000);
        return a * b;
    }

    @Override
    public int div(int a, int b) throws InterruptedException {
        Thread.sleep(1000);
        return a / b;
    }
}
